Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Problem, Solution, and Impact Sections to Project Pages #3767

Merged

Conversation

patrickohh
Copy link
Member

@patrickohh patrickohh commented Dec 6, 2022

Fixes #3547

What changes did you make and why did you make them ?

  • Added value card to project pages.
  • Value card only renders if specific project page has problem, solution and impact fields.
  • Added CSS components to _project-page.scss file to render value card with proper dimensions.

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied before value card
Visuals after changes are applied after value

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b patrickohh-add-project-value-card-3547 gh-pages
git pull https://github.com/patrickohh/website.git add-project-value-card-3547

@github-actions github-actions bot added P-Feature: Projects page https://www.hackforla.org/projects/ role: front end Tasks for front end developers size: 3pt Can be done in 13-18 hours Complexity: Medium Status: Updated No blockers and update is ready for review labels Dec 6, 2022
@t-will-gillis t-will-gillis self-requested a review December 7, 2022 19:34
@t-will-gillis
Copy link
Member

Review availability: Weds 12/7 3-5 pm
ETA: Weds 12/7 5pm

t-will-gillis
t-will-gillis previously approved these changes Dec 9, 2022
Copy link
Member

@t-will-gillis t-will-gillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @patrickohh -

Great job- It appears that the Project Value Card is rendering correctly- matching the proposed Figma screenshot- for the five projects where project.problem exists and not the others with the Liquid if statememt. The new 'Value' card seems to be rendering and resizing correctly, and I don't see any unintended effects. Good catch with the edits to the _project-page.scss-

Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @patrickohh solid work this looks really good! 👍

Just a couple of edits if possible:

  • For small to medium screen sizes, I noticed the sustainable development goal card bumps up against the edge of its container card. Perhaps the CSS could be better adjusted for this screen size range ?
    See Screenshot
  • For mobile screen sizes, the figma from the issue shows a modified design for the sustainable development goal card
    See Screenshot Comparison

    Figma Design For Mobile

    Current Pull Request on Mobile

@patrickohh
Copy link
Member Author

Hi @MattPereira , I will look into making the necessary edits as soon as possible!

@patrickohh
Copy link
Member Author

  1. Progress: Haven't gotten a chance to look at the changes needed for this issue due to a busy week last week.
  2. Blockers: Last week was just a filled schedule for me, but will take time this week to fix the needed issues.
  3. Availability: 12/21 - 12/23
  4. ETA: 12/23 Evening

…ll to medium screen ssizes but having trouble in implementing description for mobile design
@patrickohh
Copy link
Member Author

Hey @patrickohh solid work this looks really good! 👍

Just a couple of edits if possible:

  • For small to medium screen sizes, I noticed the sustainable development goal card bumps up against the edge of its container card. Perhaps the CSS could be better adjusted for this screen size range ?See Screenshot

  • For mobile screen sizes, the figma from the issue shows a modified design for the sustainable development goal card See Screenshot Comparison### Figma Design For Mobile### Current Pull Request on Mobile

Made the changes for the description card to avoid touching the outer div with small to medium screen sizes, however still finding trouble in implementing the mobile design for the description card. None of my media queries seem to work in the redesign. Is there a way to replace one div with another without having the change the whole structure of the html code?

@jdingeman jdingeman requested a review from MattPereira January 10, 2023 00:26
_sass/components/_project-page.scss Outdated Show resolved Hide resolved
@jyaymie jyaymie self-requested a review January 18, 2023 05:09
jyaymie
jyaymie previously approved these changes Jan 18, 2023
Copy link
Member

@jyaymie jyaymie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome work, @patrickohh! You developed a section that very closely matches the prototype and with logical class names and a good use of Liquid. I totally understand why you created a new div specifically for mobile as the shift in the elements' placement is tricky to implement here! That said, I think it is possible to work off just the one div you created. I played around with some of the code and got something working using this HTML structure:

<div class='sdg-description-card'>
     <h2 class='sdg-card-title title7'>Sustainable Development Goal</h2>
     <div class="sdg-description-wrapper">
          <img class='sdg-img' src='{{ page.sdg-image-src }}'/>
          <div class='sdg-description-grid-item'>{{ page.sdg }}</div>
     </div>
</div>

The main change is the wrapper around the SDG image and text. (If you have a better class name, by all means!) The SDG title, now on its own, should be more easier to manage when working on responsive design.

I'm gonna approve this PR because you did come up with a 100% valid solution, but I also know it's good practice to avoid repeated code. If you do attempt to refactor your code and get stuck, feel free to reach out on Slack!

MattPereira
MattPereira previously approved these changes Jan 19, 2023
Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I concur with @jyaymie. The responsiveness from desktop down through mobile view is excellent. This is great work on a rather difficult Figma implementation

Seems like all that remains is the trade off between shipping changes faster vs completely DRY code.

@patrickohh leaving the decision up to you. Let us know if you are done and we'll merge it as is or if you'd like to take on the challenge of implementing Jamie's clever optimization we are here for that too! 👍

@patrickohh patrickohh dismissed stale reviews from MattPereira and jyaymie via fa29960 January 19, 2023 23:26
@patrickohh
Copy link
Member Author

This is awesome work, @patrickohh! You developed a section that very closely matches the prototype and with logical class names and a good use of Liquid. I totally understand why you created a new div specifically for mobile as the shift in the elements' placement is tricky to implement here! That said, I think it is possible to work off just the one div you created. I played around with some of the code and got something working using this HTML structure:

<div class='sdg-description-card'>
     <h2 class='sdg-card-title title7'>Sustainable Development Goal</h2>
     <div class="sdg-description-wrapper">
          <img class='sdg-img' src='{{ page.sdg-image-src }}'/>
          <div class='sdg-description-grid-item'>{{ page.sdg }}</div>
     </div>
</div>

The main change is the wrapper around the SDG image and text. (If you have a better class name, by all means!) The SDG title, now on its own, should be more easier to manage when working on responsive design.

I'm gonna approve this PR because you did come up with a 100% valid solution, but I also know it's good practice to avoid repeated code. If you do attempt to refactor your code and get stuck, feel free to reach out on Slack!

Made some changes to use only one div, but running into an issue where the description section of the card wraps down too much from the screen size shrinking.

@patrickohh
Copy link
Member Author

I concur with @jyaymie. The responsiveness from desktop down through mobile view is excellent. This is great work on a rather difficult Figma implementation

Seems like all that remains is the trade off between shipping changes faster vs completely DRY code.

@patrickohh leaving the decision up to you. Let us know if you are done and we'll merge it as is or if you'd like to take on the challenge of implementing Jamie's clever optimization we are here for that too! 👍

Made an attempt on taking @jyaymie recommendation. But running into a format issue with the description section of the card.

@MattPereira MattPereira self-requested a review February 1, 2023 01:56
Copy link
Contributor

@MattPereira MattPereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superb work on this one @patrickohh 👍

We really appreciate your willingness to take on the challenge of refactoring the html and css to be more concise than the original implementation.

@MattPereira MattPereira merged commit a517d66 into hackforla:gh-pages Feb 1, 2023
@patrickohh
Copy link
Member Author

Superb work on this one @patrickohh 👍

We really appreciate your willingness to take on the challenge of refactoring the html and css to be more concise than the original implementation.

Thank you for reviewing my code and offering suggestions along the way @jyaymie @MattPereira!

@jdingeman jdingeman mentioned this pull request Feb 17, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Medium P-Feature: Projects page https://www.hackforla.org/projects/ role: front end Tasks for front end developers size: 3pt Can be done in 13-18 hours Status: Updated No blockers and update is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Problem, Solution, and Impact Sections to Project Pages
4 participants